﻿//const sqlite3 = require('sqlite3').verbose();
const sql = require('sql');
const config = {
  // 数据库配置
  database: {
    name: "gdgeek.db",
  },
  /*
  record: sql.define({
          name: 'record',
          columns: [{
              name: 'id',
              dataType: ' integer',
              primaryKey: true,
            }, {
              name: 'type',
              dataType: 'varchar(256)'
            }, {
              name: 'data',
              dataType: 'varchar(4096)'
            }, {
              name: 'time',
              dataType: 'TIMESTAMP default CURRENT_TIMESTAMP'
            }
          ]
        }),
      
     setup: sql.define({
          name: 'setup',
          columns: [{
              name: 'id',
              dataType: ' integer',
              primaryKey: true,
            },  
            {
              name: 'room',
              dataType: 'varchar(256)',
              primaryKey: true
            },{
              name: 'area',
              dataType: 'varchar(256)',
              primaryKey: true
            }, {
              name: 'data',
              dataType: 'varchar(4096)'
            }
          ]
        }),*/
}

module.exports = config